package com.note.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TNote {
    private Integer id;
    private String title;
    private String content;
    private Integer userid;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    private int type;
    private String loginname;
    private int talks;
    private String avatar;
    private int likes;

    public TNote(Integer id, String title, String content, Integer userid, Date createtime, int type, String loginname, int talks, String avatar, int likes) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.userid = userid;
        this.createtime = createtime;
        this.type = type;
        this.loginname = loginname;
        this.talks = talks;
        this.avatar = avatar;
        this.likes = likes;
    }

    public TNote() {
    }

    @Override
    public String toString() {
        return "TNote{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", userid=" + userid +
                ", createtime=" + createtime +
                ", type=" + type +
                ", loginname='" + loginname + '\'' +
                ", talks=" + talks +
                ", avatar='" + avatar + '\'' +
                ", likes=" + likes +
                '}';
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public int getTalks() {
        return talks;
    }

    public void setTalks(int talks) {
        this.talks = talks;
    }
}
